﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utility;
using Data;
namespace DataAccess
{
    public class Tbl_LessonBus
    {
        LinqUtility<tbl_lesson> context = new LinqUtility<tbl_lesson>();

        public List<tbl_lesson> getListLesson()
        {
            return context.GetAll();
        }

        public void insertLesson(tbl_lesson tl)
        {
            context.Insert(tl);
        }

        public void updateLesson(tbl_lesson tl)
        {
            context.Update(tl);
        }

        public void delete(tbl_lesson tl)
        {
            context.Delete(tl);
        }
    }
}
